﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using BooksOnline.Models.Entities;
using FluentNHibernate.Mapping;

namespace BooksOnline.Models.Mappings
{
    public class RecommendationMapping : ClassMap<Recommendation>
    {
        public RecommendationMapping()
        {
            Table("Recommendation");
            Id(a => a.Id);
            Map(a => a.Text);
            References(a => a.Book);
            References(a => a.Customer);
        }
    }
}